//public class Main {
//    public static void main(String[] args) {
//        Student student=new Student("jack",1001,"男",18,90,2,true,"123456789");
////        System.out.println();
//        student.displayinfo();
//    }
//}

//public class Main {
//    public static void main(String[] args) {
//        Course course = new Course("计算机科学", "CS101", 4);
//        course.displayCourseInfo();
//    }
//}
//
//public class Main {
//    public static void main(String[] args) {
//        BankAccount account = new BankAccount("123456789", "张三", 1000.00);
//        account.deposit(500.00);
//        account.withdraw(200.00);
//        account.displayAccountInfo();
//    }
//}
//
//public class Main {
//    public static void main(String[] args) {
//        LibraryBook book = new LibraryBook("Java编程思想", "Bruce Eckel", "978-7-111-17848-8", true);
//        book.borrowBook();
//        book.returnBook();
//        book.displayBookInfo();
//    }
//}

public class Main {
    public static void main(String[] args) {
        // 创建一个新的 BankAccount 实例
        BankAccount myAccount = new BankAccount("12345678", "张三", 50000);

        // 存款操作
        myAccount.deposit(20000);

        // 取款操作
        myAccount.withdraw(30000);

        // 获取余额
        System.out.println("当前余额: " + myAccount.getBalance());

        // 判断是否透支
        if (myAccount.isOverdrawn()) {
            System.out.println("账户透支了");
        } else {
            System.out.println("账户没有透支");
        }

        // 判断是否为 VIP 账户
        myAccount.isVIP();
    }
}


